
package atm.model;

public class CreditCardInfo {

	private String number;

	private int validThroughMonth;

	private int validThroughYear;

	public CreditCardInfo(String number, int validThroughMonth, int validThroughYear) {
		setNumber(number);
		setValidThroughMonth(validThroughMonth);
		setValidThroughYear(validThroughYear);
	}

	public String getNumber() {
		return number;
	}

	public int getValidThroughMonth() {
		return validThroughMonth;
	}

	public int getValidThroughYear() {
		return validThroughYear;
	}

	private void setNumber(String value) {
		number = value;
	}

	private void setValidThroughMonth(int value) {
		validThroughMonth = value;
	}

	private void setValidThroughYear(int value) {
		validThroughYear = value;
	}

}
